package com.spudtech.collision.polygon
{
    
    import flash.geom.*;
    
    import com.spudtech.*;
    import com.spudtech.collision.*;
    
    
    public class SpudPolygon extends SpudCollider// implements ISpudShape
    {
        
        protected var _sides : Array;
        
        
        public function SpudPolygon(position : Point,
                                    init_segments : Array)
        {
            super(position);
            
            _sides = new Array();
            
            for each (var obj : Object in init_segments)
            {
                if (obj is SpudLineSegment)
                {
                    _sides.push(SpudLineSegment(obj));
                }
                else
                {
                    throw new TypeError("Object that is not a SpudLineSegment was given as a line segment");
                }
                
            }
            
        }
        
        
        public static function dotProduct() : Number
        {
            return 0.0;
            
        }
        
    }
    
}
